<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class AdminFundNews extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'admin_fund_news';

    protected $fillable = [
        'fund_id',
        'title',
        'desc',
        'file_list',
        'show_time'
    ];

    protected $casts = [
        'file_list' => 'array', // 👈 告诉 Laravel 把它当成数组处理
    ];
}
